/**
 * This file is part of Idegen, the application to create IDE project files.
 *
 * @copyright Copyright (c) 2011-2012, Walter Tamboer http://waltertamboer.nl
 * @file Idegen/IO/Directory.cpp
 */

#include "Idegen/PrecompiledHeader.hpp"
#include "Idegen/IO/File.hpp"

namespace Idegen
{
	File::File()
	{
	}

	File::File( const std::string& path )
		: m_Path( path )
	{
	}

	File::~File()
	{
	}
	
	bool File::HasExtension( const std::string& extension ) const
	{
		unsigned int lastMatchPos = m_Path.rfind( extension );
		
		return lastMatchPos != std::string::npos;
	}

	std::string File::GetPath() const
	{
		return m_Path;
	}
}
